import { createStore } from "vuex";
import { pagesConfig, configData } from "../config/config";
import { request } from "../utils/request";
import { ElMessage } from "element-plus";

export const store = createStore<any>({
  state: {
    baseApi: "http://localhost:9191",
    pagesConfig: pagesConfig,
    configData: configData,
    request,
    message: ElMessage,
  },
  getters: {},
  mutations: {},
  actions: {},
  modules: {},
});
